﻿using PioneerBoilerplate.Model.BaseEntity;
using System.Collections.Generic;

namespace PioneerBoilerplate.Model.Admin
{
    public class RoleEntity : EntityFull
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 编码
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 说明
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 启用
        /// </summary>
		public bool Enabled { get; set; } = true;

        /// <summary>
        /// 排序
        /// </summary>
		public int Sort { get; set; }

        public List<UserRoleEntity> UserRoles { get; set; }
    }
}
